package com.baizhi.cmfz.service;

import com.baizhi.cmfz.entity.Admin;

import java.util.Map;
import java.util.Set;

public interface AdminService {

    boolean login(String username, String password,String code);

    Map showPageAdmin(int page, int limit);

    Map addAdmin(Admin admin);

    Map updateAdmin(Admin admin);

    Map deleteAdmin(int id);

    Admin selectOneAdmin(String username);

    //根据用户名查询出该用户对应的角色
    Set<String> selectAdminRole(String username);
    //根据用户名查询出该用户对应的权限
    Set<String> selectAdminPermision(String username);
}
